From 55d7086012de36c9101013545dc0901932e0173d Mon Sep 17 00:00:00 2001 From: Mathijs van de Nes Date: Thu, 16 Apr 2015 17:00:39 +0200 Subject: [PATCH] Add native dependencies to doctest This will traverse all native dependencies and add them to the rustdoc command when running tests. Fixes #1245 --- src/cargo/ops/cargo_test.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cargo/ops/cargo_test.rs b/src/cargo/ops/cargo_test.rs index ccc872e39..b4132239f 100644 --- a/src/cargo/ops/cargo_test.rs +++ b/src/cargo/ops/cargo_test.rs @@ -45,6 +45,10 @@ pub fn run_tests(manifest_path: &Path, }) .cwd(compile.package.root()); + for native_dep in compile.native_dirs.values() { + p.arg("-L").arg(native_dep); + } + if test_args.len() > 0 { p.arg("--test-args").arg(&test_args.connect(" ")); } -- 2.30.2